package com.fight.strive.sys.modules.rbac.dto;

import com.fight.strive.sys.modules.rbac.entity.RbacDepartmentEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 部门树
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class RbacDepartmentTreeDto {

    public RbacDepartmentTreeDto(Long id, String label, RbacDepartmentEntity department) {
        this.id = id;
        this.label = label;
        this.department = department;
    }

    private Long id;

    private String label;

    private RbacDepartmentEntity department;

    private List<RbacDepartmentTreeDto> children;
}
